﻿/*
	Author : Zeus2
*/

using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.DrugTrade.Model
{
    /// <summary>
    /// 发票实体类
    /// </summary>
    [Serializable]
    [HZ.Table(TableName = "TB_INVOICE")]
    public class Invoice
    {
        /// <summary>
        /// 发票流水号
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string InvoiceSerialID { get; set; }
        /// <summary>
        /// 发票编号
        /// </summary>
        public string InvoiceID { get; set; }
        /// <summary>
        /// 发票时间
        /// </summary>
        public System.DateTime? InvoiceTime { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal? TotalAmount { get; set; }
        /// <summary>
        /// 审核状态:0未审核;1审核通过;2未通过审核
        /// </summary>
        public int? AuditStatus { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public System.DateTime? AuditTime { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string AuditPerson { get; set; }
        /// <summary>
        /// 配送企业编号(冗余字段)
        /// </summary>
        public string CompanyID_PS { get; set; }
        /// <summary>
        /// 未通过原因
        /// </summary>
        public string NoPassReason { get; set; }
        /// <summary>
        /// 医疗机构ID(冗余字段)
        /// </summary>
        public string HospitalID { get; set; }
        /// <summary>
        /// 回款单编号
        /// </summary>
        public string InvoicePaySerialID { get; set; }

        /// <summary>
        /// 添加日期
        /// </summary>
        public DateTime? AddDate { get; set; }
        /*升级后增加的冗余字段*/
        public string HospitalName { get; set; }
        public string CompanyName_PS { get; set; }
        public string AreaID { get; set; }
        public string AreaName { get; set; }


        /// <summary>
        /// 是否提交
        /// </summary>
        public bool? IsSubmit { get; set; }
        /// <summary>
        /// 金额修改时间
        /// </summary>
        public System.DateTime? Altertime { get; set; }
        /// <summary>
        /// 原来金额
        /// </summary>
        public decimal? TotalAmount_old { get; set; }
        /// <summary>
        ///修改原因
        /// </summary>
        public string Note
        {
            get;
            set;
        }
        /// <summary>
        /// 修改状态：0为未修改，1为修改了
        /// </summary>
        public int Flag
        {
            get;
            set;
        }
    }
}